<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title><?php echo $self['title']?> - 青柠后台管理</title>
    <?php foreach($css as $val){ ?>
     <link rel="stylesheet" href="<?php echo $val?>">
    <?php }?>
  </head>
  <body> 
    <nav id="navbar">
        <span class="logo">后台管理</span>
        <a target="_blank" href="/nsbbs/">应用首页</a>
        <div class="user">
            <span><?php if($admin_data){echo $helo.'，'.htmlspecialchars($admin_data['user']);}else{echo $helo.'，'.htmlspecialchars($user_data['user']);}?></span> 
        <?php if($admin_data){ ?>
            <a href="logout.php">退出</a>
        <?php }else{ ?>
            <a href="login.php">切换Root</a>
        <?php } ?>
        </div>
    </nav>
    <ul id="fixed-menu">
        <li class="title">系统</li>
        <li <?php if(!$_GET['p']){echo 'class="current"';}?>><a href="admin.php">系统信息</a></li>
        <li <?php if($_GET['p']==1){echo 'class="current"';}?>><a href="?p=1">管理员</a></li>
        <li <?php if($_GET['p']==2){echo 'class="current"';}?>><a href="?p=2">用户列表</a></li>
        <li class="title">内容管理</li>
        <li <?php if($_GET['p']==3){echo 'class="current"';}?>><a href="?p=3">主版面管理</a></li>
        <li <?php if($_GET['p']==4){echo 'class="current"';}?>><a href="?p=4">从版面管理</a></li>
        <li <?php if($_GET['p']==5){echo 'class="current"';}?>><a href="?p=5">帖子管理</a></li>
        <li <?php if($_GET['p']==7){echo 'class="current"';}?>><a href="?p=7">被举报的帖子</a></li>
        <li <?php if($_GET['p']==11){echo 'class="current"';}?>><a href="?p=11">敏感词设置</a></li>
        <li class="title">相关部门</li>
        <li style="position:relative" class="<?php if($_GET['p']==9){echo 'current ';}?><?php if($user_data['state']['gzwx']){echo 'red-dot';}?>"><a href="?p=9">故障维修管理</a></li>
        <li style="position:relative" class="<?php if($_GET['p']==10){echo 'current ';}?><?php if($user_data['state']['hdsb']){echo 'red-dot';}?>"><a href="?p=10">活动申报管理</a></li>
    </ul>
    